#pragma once

#include <windows.h>
#include <GLES2/gl2.h>

#include <string>

class Image {
public:



    Image() {


        memset(this, 0,sizeof(Image));
    }

    ~Image() {
        if(data) {
            delete data;
        }
    }

    bool Save(const std::string& dir, int width = 0, int height = 0);

    int id;
    int pixel;
    int width;
    int height;
    int format;
    int type;
    char* data;


};
